{% extends 'mama.html' %}
{% block content %}
    <br>
    <div style="text-align:center; font-size: 20px;">
        {% if form.errors %}
            <p>你的用户名或者密码错误</p>
        {% endif %}

        <form action="/login/" method="post">
            {% csrf_token %}
            {{ form.as_p }}
            <button name="submit">登录</button>
            <input type="hidden" name="next" value="/user/list/"/>
        </form>
    </div>

{% endblock content %}

